#ifndef LOGICENGINE_H
#define LOGICENGINE_H

#include "LogicEngine_global.h"
#include "QObject"
#include "QString"
#include "QMap"
#include "rulebase.h"

class LOGICENGINESHARED_EXPORT LogicEngine  : public  QObject {
    Q_OBJECT
public:
    LogicEngine(QString stationName);
    ~LogicEngine();
    QString CheckLogic(QString content);
    void UpdateDeviceState(QString content);
private:
    void ConfigLog();
    void Init(QString stationName);
    void Load102(QString stationName);     //一次闭锁二次
    void Load201(QString stationName);     //二次闭锁一次
    void Load202(QString stationName);     //二次闭锁二次

    QMap<int,RuleBase*> m_mRules;
};

#endif // LOGICENGINE_H
